#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTcpSocket>
#include<QPainter>
#include"menu.h"
#include"music.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QTcpSocket * clientSocket;
//    QList<song> song_List;
    int i=1;
//    music * p1;
//    MainWindow * p2;
public slots:
    void onReadyRead();
    void onConnected();
    void on_pushButton_clicked();
    void on_pushButton_3_clicked();

    void Disconnect();
    void mousePressEvent(QMouseEvent *event);
    void paintEvent(QPaintEvent *event);
private:
    Ui::MainWindow *ui;
    QStandardItemModel * pModel;
    QStringList titles;
     menu * p;
     QMenu *menuQuit;
    QPoint mOffset;

};
#endif // MAINWINDOW_H
